package org.edu.modules.survey.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.io.Serializable;

@TableName("ve_addons_survey_question")
@ApiModel(value = "ve_addons_survey_question对象", description = "问卷题目")
public class VeAddonsSurveyQuestion implements Serializable {
    private static final long serialVersionUID = 1L;
    @TableId(type = IdType.AUTO)
    @ApiModelProperty("id")
    private Integer id;
    @ApiModelProperty("标题")
    private String title;
    @ApiModelProperty("答案")
    private String answer;
    @ApiModelProperty("说明")
    private String remark;
    @ApiModelProperty("时间")
    private Integer createtime;

    public org.edu.modules.survey.entity.VeAddonsSurveyQuestion setId(Integer id) {
        this.id = id;
        return this;
    }

    @ApiModelProperty("应用")
    private Integer appid;
    @ApiModelProperty("模块")
    private String module;
    @ApiModelProperty("终端")
    private Integer terminalid;
    @ApiModelProperty("题型1,2,3分别为单选，多选问答")
    private Integer typeid;
    @ApiModelProperty("排序")
    private Integer listsort;
    @ApiModelProperty("问题解析")
    private String parse;
    @ApiModelProperty("多租户id")
    private Integer placeId;

    public org.edu.modules.survey.entity.VeAddonsSurveyQuestion setTitle(String title) {
        this.title = title;
        return this;
    }

    public org.edu.modules.survey.entity.VeAddonsSurveyQuestion setAnswer(String answer) {
        this.answer = answer;
        return this;
    }

    public org.edu.modules.survey.entity.VeAddonsSurveyQuestion setRemark(String remark) {
        this.remark = remark;
        return this;
    }

    public org.edu.modules.survey.entity.VeAddonsSurveyQuestion setCreatetime(Integer createtime) {
        this.createtime = createtime;
        return this;
    }

    public org.edu.modules.survey.entity.VeAddonsSurveyQuestion setAppid(Integer appid) {
        this.appid = appid;
        return this;
    }

    public org.edu.modules.survey.entity.VeAddonsSurveyQuestion setModule(String module) {
        this.module = module;
        return this;
    }

    public org.edu.modules.survey.entity.VeAddonsSurveyQuestion setTerminalid(Integer terminalid) {
        this.terminalid = terminalid;
        return this;
    }

    public org.edu.modules.survey.entity.VeAddonsSurveyQuestion setTypeid(Integer typeid) {
        this.typeid = typeid;
        return this;
    }

    public org.edu.modules.survey.entity.VeAddonsSurveyQuestion setListsort(Integer listsort) {
        this.listsort = listsort;
        return this;
    }

    public org.edu.modules.survey.entity.VeAddonsSurveyQuestion setParse(String parse) {
        this.parse = parse;
        return this;
    }

    public org.edu.modules.survey.entity.VeAddonsSurveyQuestion setPlaceId(Integer placeId) {
        this.placeId = placeId;
        return this;
    }

    public String toString() {
        return "VeAddonsSurveyQuestion(id=" + getId() + ", title=" + getTitle() + ", answer=" + getAnswer() + ", remark=" + getRemark() + ", createtime=" + getCreatetime() + ", appid=" + getAppid() + ", module=" + getModule() + ", terminalid=" + getTerminalid() + ", typeid=" + getTypeid() + ", listsort=" + getListsort() + ", parse=" + getParse() + ", placeId=" + getPlaceId() + ")";
    }


    public boolean equals(Object o) {
        if (o == this) return true;
        if (!(o instanceof org.edu.modules.survey.entity.VeAddonsSurveyQuestion)) return false;
        org.edu.modules.survey.entity.VeAddonsSurveyQuestion other = (org.edu.modules.survey.entity.VeAddonsSurveyQuestion) o;
        if (!other.canEqual(this)) return false;
        Object this$id = getId(), other$id = other.getId();
        if ((this$id == null) ? (other$id != null) : !this$id.equals(other$id)) return false;
        Object this$createtime = getCreatetime(), other$createtime = other.getCreatetime();
        if ((this$createtime == null) ? (other$createtime != null) : !this$createtime.equals(other$createtime))
            return false;
        Object this$appid = getAppid(), other$appid = other.getAppid();
        if ((this$appid == null) ? (other$appid != null) : !this$appid.equals(other$appid)) return false;
        Object this$terminalid = getTerminalid(), other$terminalid = other.getTerminalid();
        if ((this$terminalid == null) ? (other$terminalid != null) : !this$terminalid.equals(other$terminalid))
            return false;
        Object this$typeid = getTypeid(), other$typeid = other.getTypeid();
        if ((this$typeid == null) ? (other$typeid != null) : !this$typeid.equals(other$typeid)) return false;
        Object this$listsort = getListsort(), other$listsort = other.getListsort();
        if ((this$listsort == null) ? (other$listsort != null) : !this$listsort.equals(other$listsort)) return false;
        Object this$placeId = getPlaceId(), other$placeId = other.getPlaceId();
        if ((this$placeId == null) ? (other$placeId != null) : !this$placeId.equals(other$placeId)) return false;
        Object this$title = getTitle(), other$title = other.getTitle();
        if ((this$title == null) ? (other$title != null) : !this$title.equals(other$title)) return false;
        Object this$answer = getAnswer(), other$answer = other.getAnswer();
        if ((this$answer == null) ? (other$answer != null) : !this$answer.equals(other$answer)) return false;
        Object this$remark = getRemark(), other$remark = other.getRemark();
        if ((this$remark == null) ? (other$remark != null) : !this$remark.equals(other$remark)) return false;
        Object this$module = getModule(), other$module = other.getModule();
        if ((this$module == null) ? (other$module != null) : !this$module.equals(other$module)) return false;
        Object this$parse = getParse(), other$parse = other.getParse();
        return !((this$parse == null) ? (other$parse != null) : !this$parse.equals(other$parse));
    }

    protected boolean canEqual(Object other) {
        return other instanceof org.edu.modules.survey.entity.VeAddonsSurveyQuestion;
    }

    public int hashCode() {
        int PRIME = 59;
        Integer result = 1;
        Object $id = getId();
        result = result * 59 + (($id == null) ? 43 : $id.hashCode());
        Object $createtime = getCreatetime();
        result = result * 59 + (($createtime == null) ? 43 : $createtime.hashCode());
        Object $appid = getAppid();
        result = result * 59 + (($appid == null) ? 43 : $appid.hashCode());
        Object $terminalid = getTerminalid();
        result = result * 59 + (($terminalid == null) ? 43 : $terminalid.hashCode());
        Object $typeid = getTypeid();
        result = result * 59 + (($typeid == null) ? 43 : $typeid.hashCode());
        Object $listsort = getListsort();
        result = result * 59 + (($listsort == null) ? 43 : $listsort.hashCode());
        Object $placeId = getPlaceId();
        result = result * 59 + (($placeId == null) ? 43 : $placeId.hashCode());
        Object $title = getTitle();
        result = result * 59 + (($title == null) ? 43 : $title.hashCode());
        Object $answer = getAnswer();
        result = result * 59 + (($answer == null) ? 43 : $answer.hashCode());
        Object $remark = getRemark();
        result = result * 59 + (($remark == null) ? 43 : $remark.hashCode());
        Object $module = getModule();
        result = result * 59 + (($module == null) ? 43 : $module.hashCode());
        Object $parse = getParse();
        return result * 59 + (($parse == null) ? 43 : $parse.hashCode());
    }


    public Integer getId() {
        return this.id;
    }

    public String getTitle() {
        /* 40 */
        return this.title;
    }

    public String getAnswer() {
        /* 43 */
        return this.answer;
    }

    public String getRemark() {
        /* 46 */
        return this.remark;
    }

    public Integer getCreatetime() {
        return this.createtime;
    }

    public Integer getAppid() {
        /* 52 */
        return this.appid;
    }

    public String getModule() {
        /* 55 */
        return this.module;
    }

    public Integer getTerminalid() {
        /* 58 */
        return this.terminalid;
    }

    public Integer getTypeid() {
        return this.typeid;
    }

    public Integer getListsort() {
        /* 64 */
        return this.listsort;
    }

    public String getParse() {
        /* 67 */
        return this.parse;
    }

    public Integer getPlaceId() {
        /* 70 */
        return this.placeId;
    }
}


